package org.huawei.model.domain;

import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.AllArgsConstructor;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import java.util.Date;

@Data
@NoArgsConstructor
@AllArgsConstructor
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class Homework {
    private int homeworkId;
    private int createBy;
    private String homeworkName;
    private String homeworkDescription;
    private int submissionTimes;
    private double homeworkGrade;
    private HomeworkStatus homeworkStatus;
    private Date homeworkCreationDate;
    private Date homeworkUpdateDate;
    private Date homeworkEndDate;

    public enum HomeworkStatus {
        ASSIGNED,
        OVERDUE,
        DELETED
    }
}

